from rest_framework import serializers
from seller.models import Goods


# 创建goods序列化类
class GoodsSerializers(serializers.ModelSerializer):
    class Meta:
        model =  Goods
        fields = ['id', 'name', 'price', 'goodsimg']  # 需要进行序列化的属性
        # fields = '__all__'  # 需要进行序列化的属性  显示所有
